<!-- $Id: about_us.htm 16654 2009-09-09 10:29:24Z liuhui $ -->
{include file="pageheader.htm"}
{if $warning}
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
  <li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" >{$warning}</li>
</ul>
{/if}
<!--{if $action eq 'index'}-->
<div class="list-div">
<table cellspacing='1' cellpadding='3'>
  <tr>
    <th colspan="2" class="group-title">淘宝地址</th>
  </tr>
  <tr>
    <td width="20%" class="first-cell">输入淘宝商城商品url;例如：http://detail.tmall.com/item.htm?id=9939533649</td><td>
<form action="taobao.php?action=submit_url" method="post" name="theForm">
<input name="url" type="text" />
 <input name="url_confirm" type="submit" value="确定" class="button"/>
</form>
    </td>
  </tr>
</table>
</div>
<!--{/if}-->

<!--{if $action eq 'view'}-->
<div class="list-div">
<table cellspacing='1' cellpadding='3'>
  <tr>
    <th colspan="2" class="group-title">淘宝地址</th>
  </tr>
  <tr>
    <td width="20%" class="first-cell">淘宝商城商品url;</td><td>{$url}</td>
  </tr>
  <tr>
    <td width="20%" class="first-cell">商品名称：</td><td>{$goods.name}</td>
  </tr>
  <tr>
    <td width="20%" class="first-cell">商品价格：</td><td>{$goods.normal_price}</td>
  </tr>
   <tr>
    <td width="20%" class="first-cell">商品图片：</td><td>  {foreach from=$goods.thumb_pic item=img key=okey} {$img}{/foreach}</td>
  </tr>
  <tr>
    <td width="20%" class="first-cell">商品属性：</td><td>{foreach from=$goods.attributes item=attribute key=key} 
	{foreach from=$attribute item=attribute_value key=attribute_value_name}
	{$attribute_value_name}:{$attribute_value}<br />
	{/foreach}
	{/foreach}</td>
  </tr>
   <tr>
    <td width="20%" class="first-cell">商品评论：</td><td>
	{foreach from=$goods.comment item=comment key=okey}
		{foreach from=$comment item=content key=key}
		{$key}:{$content}
		{/foreach}
	{/foreach}</td>
  </tr> 	
    <td></td><td>
<form action="taobao.php?action=insert" method="post" name="theForm">
<input name="cacheid" type="hidden" value="{$cacheid}"/>
添加到： 分类：<select name="cat_id"><option value="0">{$lang.goods_cat}</option>{$cat_list}</select>
 属性分类：                <select name="goods_type" >
                  <option value="0">{$lang.sel_goods_type}</option>
                  {$goods_type_list}
                </select>
 品牌：<select name="brand_id"><option value="0">{$lang.goods_brand}</option>{html_options options=$brand_list}</select>
价格：<input name="price" type="text" />
 <input name="confirm" type="submit" value="确定" class="button"/>
</form>
    </td>
</table>
</div>
<!--{/if}-->
{include file="pagefooter.htm"}